import xlwt
from xlwt import XFStyle


def css1() -> tuple[XFStyle, XFStyle]:
    style_temp: XFStyle = xlwt.XFStyle()
    # 设置单元格内容居中
    temp11 = xlwt.Alignment()
    temp11.horz = 0x02  # 水平居中
    temp11.vert = 0x01  # 垂直居中
    style_temp.alignment = temp11
    # 设置单元格四面都有边框
    borders = xlwt.Borders()
    borders.left = xlwt.Borders.THIN
    borders.right = xlwt.Borders.THIN
    borders.top = xlwt.Borders.THIN
    borders.bottom = xlwt.Borders.THIN
    borders.left_colour = 0x40
    borders.right_colour = 0x40
    borders.top_colour = 0x40
    borders.bottom_colour = 0x40
    style_temp.borders = borders
    # 设置字体加粗
    font = xlwt.Font()
    font.bold = True
    # 仅限表头和列头可以加粗
    style_title = style_temp
    style_title.font = font
    return style_temp, style_title
